{% extends "base.html" %} {% block title %}{{ doctor.user.name }} - {{ doctor.specialization }}{% endblock %} {% block extra_css %} {% endblock %} {% block content %} {% if is_own_profile|default(False) and is_approved %}
Edit Profile
{% elif is_own_profile|default(False) and is_pending %}
{% if doctor.appeal_count > 0 %}
Appeal Submitted Successfully! Your appeal (#{{ doctor.appeal_count }}) has been submitted and is under review. Please wait for admin approval. You cannot edit your profile while it is pending review.
{% else %}
Profile Pending Approval: Your profile is currently pending approval. Please wait for admin review.
{% endif %}
{% endif %}
{% if doctor.user.profile_picture %} {{ doctor.user.name }} {% else %}
{{ doctor.user.name[0].upper() }}
{% endif %}
{{ doctor.user.name }}
{{ doctor.specialization|title }}
{% if doctor.education %} {% set quals = doctor.education.split(',') %}
{{ quals[0].strip() }}{% if quals|length > 1 %}, {{ quals[1].strip() }}{% endif %}{% if quals|length > 2 %}...{% endif %}
{% endif %} {% if is_approved %} PMC Verified {% elif is_pending %} {% if doctor.appeal_count > 0 %} Appeal #{{ doctor.appeal_count }} - Under Review {% else %} Pending Approval {% endif %} {% elif is_rejected %} Rejected {% elif is_suspended %} Suspended {% endif %}
{% if is_approved and doctor.time_slots %} Under 15 Mins {% else %} {% if is_pending %}Pending{% else %}N/A{% endif %} {% endif %} Wait Time
{{ doctor.experience|int }} Year{{ 's' if doctor.experience|int != 1 else '' }} Experience
{% if is_approved %} {% if doctor.appointments.filter_by(status='completed').count() > 0 %} 99% {% else %} 0% {% endif %} {% else %} {% if is_pending %}Pending{% else %}N/A{% endif %} {% endif %} Satisfied Patients
{% if is_suspended and is_own_profile|default(False) %}

Account Permanently Suspended

Your account is permanently suspended and now you can't do any activity on this platform.

{% else %}
{% if is_rejected and is_own_profile|default(False) %}

Registration Status

Current Status
Rejected
Rejection Reason
{% if doctor.rejection_reason %}

{{ doctor.rejection_reason }}

{% else %}

No specific reason provided.

{% endif %}
{% if doctor.appeal_status != 'suspended' and doctor.appeal_count < 3 %}
Appeal Information
Appeal Attempts {{ doctor.appeal_count }} / 3
Remaining Attempts {{ 3 - doctor.appeal_count }}
Next Steps: You can submit an appeal to review your profile again. Please make necessary improvements based on the rejection reason above.
{% endif %}
{% endif %}

About

{% if doctor.education %}
Qualifications
{% for qual in doctor.education.split(',') %} {% endfor %}
Degree
{{ qual.strip() }}
{% endif %}
Experience
Institute Designation
Multiple Hospitals (See time slots) {{ doctor.specialization|title }} - {{ doctor.experience|int }} Year{{ 's' if doctor.experience|int != 1 else '' }} Experience
{% if doctor.bio %}
Professional Statement by Dr. {{ doctor.user.name }}

{{ doctor.user.name }} is a {{ doctor.specialization|title }}. {{ doctor.bio }}

{% endif %}
{% if doctor.specialization or doctor.bio %}

Services

{% if doctor.specialization %} {% set services = doctor.specialization.split(',') if ',' in doctor.specialization else [doctor.specialization] %} {% for service in services %} {{ service.strip()|title }} {% endfor %} {% endif %} {% if doctor.bio %} {% set bio_words = doctor.bio.split() %} {% for word in bio_words[:10] %} {% if word|length > 4 and word not in ['the', 'and', 'with', 'from', 'that', 'this', 'doctor', 'years'] %} {{ word.strip('.,!?')|title }} {% endif %} {% endfor %} {% endif %}
{% endif %}

Video Consultation

Clinic
{% if is_approved %} {% if doctor.video_charges %} Rs. {{ doctor.video_charges }} {% else %} Fee information not available {% endif %} {% else %} Fee information will be available after approval {% endif %}
{% if is_approved and doctor.time_slots %}
Available Timings:
    {% for day, slots in doctor.time_slots.items() %}
  • {{ day|title }}: {% for slot in slots %} {{ slot }} {% endfor %}
  • {% endfor %}
{% elif is_approved %}

Timings will be updated soon.

{% endif %} {% if is_approved %} {% if session.user_id %} Book Video Consultation {% else %} Login to Book {% endif %} {% else %}
Booking Restricted: Video consultation is not available {{ 'until profile is approved' if is_pending else 'for this doctor' }}.
{% endif %}

Physical Appointment

Fee: {% if is_approved %} {% if doctor.physical_charges %} Rs. {{ doctor.physical_charges }} {% else %} Fee information not available {% endif %} {% else %} Fee information will be available after approval {% endif %}
Address:
{{ doctor.location }}, {{ doctor.city|title }}
{% if is_approved and doctor.time_slots %}
Available Timings:
    {% for day, slots in doctor.time_slots.items() %}
  • {{ day|title }}: {% for slot in slots %} {{ slot }} {% endfor %}
  • {% endfor %}
{% elif is_approved %}

Timings will be updated soon.

{% endif %} {% if is_approved %} {% if session.user_id %} Book Physical Appointment {% else %} Login to Book {% endif %} {% else %}
Booking Restricted: Physical appointments are not available {{ 'until profile is approved' if is_pending else 'for this doctor' }}.
{% endif %}
{% if is_approved and doctor.time_slots %}

Practice Address and Timings

Clinic
Address:
{{ doctor.location }}, {{ doctor.city|title }}
Available Timings:
    {% for day, slots in doctor.time_slots.items() %}
  • {{ day|title }}: {% for slot in slots %} {% if slot is mapping %} {{ slot.time }}{% if slot.hospital %} ({{ slot.hospital }}){% endif %} {% else %} {{ slot }} {% endif %} {% endfor %}
  • {% endfor %}
{% endif %}

Frequently Asked Questions

{% if is_approved %} You can book an appointment with {{ doctor.user.name }} by clicking the "Book Video Consultation" button above for online consultations or "Book Physical Appointment" button for in-person visits. You need to be logged in to book an appointment. {% else %} Appointments cannot be booked until {{ doctor.user.name }}'s profile has been approved by the administration. Please check back later. {% endif %}

{% if is_approved %} {% if doctor.video_charges %} Video Consultation: Rs. {{ doctor.video_charges }}

{% endif %} {% if doctor.physical_charges %} Physical Appointment: Rs. {{ doctor.physical_charges }} {% endif %} {% if not doctor.video_charges and not doctor.physical_charges %} Fee information is not currently available. Please contact the clinic for pricing details. {% endif %} {% else %} Fee information will be available after the doctor's profile is approved by the administration. {% endif %}

{% if doctor.education %} {{ doctor.user.name }} has the following qualifications:
    {% for qual in doctor.education.split(',') %}
  • {{ qual.strip() }}
  • {% endfor %}
{% else %} Qualification information is not currently available. {% endif %}

{{ doctor.user.name }} is a specialist in {{ doctor.specialization|title }}. {% if doctor.bio %}

{{ doctor.bio[:200] }}{% if doctor.bio|length > 200 %}...{% endif %} {% endif %}

{% if is_approved and doctor.time_slots %} Practice timings for {{ doctor.user.name }} are:
    {% for day, slots in doctor.time_slots.items() %}
  • {{ day|title }}: {{ slots|join(', ') }}
  • {% endfor %}
{% else %} Practice timings will be available after the doctor's profile is approved by the administration. {% endif %}
{% if is_approved %} {% endif %}
{% endif %} {% endblock %}